home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / Multiple R184024152001.psc / createhim.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2001-04-15  |  3.5 KB  |  117 lines

  1. VERSION 5.00
  2. Begin VB.Form Form4 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "Create Channel"
  5.    ClientHeight    =   2175
  6.    ClientLeft      =   45
  7.    ClientTop       =   330
  8.    ClientWidth     =   4095
  9.    Icon            =   "createhim.frx":0000
  10.    LinkTopic       =   "Form4"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   2175
  14.    ScaleWidth      =   4095
  15.    StartUpPosition =   2  'CenterScreen
  16.    Begin VB.CommandButton Command2 
  17.       Caption         =   "Cancel"
  18.       Height          =   375
  19.       Left            =   1680
  20.       TabIndex        =   7
  21.       Top             =   1680
  22.       Width           =   1095
  23.    End
  24.    Begin VB.CommandButton Command1 
  25.       Caption         =   "OK"
  26.       Default         =   -1  'True
  27.       Height          =   375
  28.       Left            =   2880
  29.       TabIndex        =   6
  30.       Top             =   1680
  31.       Width           =   1095
  32.    End
  33.    Begin VB.TextBox Text3 
  34.       Height          =   285
  35.       IMEMode         =   3  'DISABLE
  36.       Left            =   1440
  37.       MaxLength       =   30
  38.       PasswordChar    =   "*"
  39.       TabIndex        =   5
  40.       Top             =   960
  41.       Width           =   2500
  42.    End
  43.    Begin VB.TextBox Text2 
  44.       Height          =   285
  45.       IMEMode         =   3  'DISABLE
  46.       Left            =   1440
  47.       MaxLength       =   30
  48.       PasswordChar    =   "*"
  49.       TabIndex        =   3
  50.       Top             =   600
  51.       Width           =   2500
  52.    End
  53.    Begin VB.TextBox Text1 
  54.       Height          =   285
  55.       Left            =   1440
  56.       MaxLength       =   30
  57.       TabIndex        =   1
  58.       Top             =   240
  59.       Width           =   2500
  60.    End
  61.    Begin VB.Label Label4 
  62.       BorderStyle     =   1  'Fixed Single
  63.       Height          =   255
  64.       Left            =   120
  65.       TabIndex        =   8
  66.       Top             =   1320
  67.       Width           =   3855
  68.    End
  69.    Begin VB.Label Label3 
  70.       Caption         =   "Password:"
  71.       Height          =   255
  72.       Left            =   120
  73.       TabIndex        =   4
  74.       Top             =   960
  75.       Width           =   1335
  76.    End
  77.    Begin VB.Label Label2 
  78.       Caption         =   "Password:"
  79.       Height          =   255
  80.       Left            =   120
  81.       TabIndex        =   2
  82.       Top             =   600
  83.       Width           =   1335
  84.    End
  85.    Begin VB.Label Label1 
  86.       Caption         =   "Chat room name:"
  87.       Height          =   255
  88.       Left            =   120
  89.       TabIndex        =   0
  90.       Top             =   240
  91.       Width           =   2055
  92.    End
  93. Attribute VB_Name = "Form4"
  94. Attribute VB_GlobalNameSpace = False
  95. Attribute VB_Creatable = False
  96. Attribute VB_PredeclaredId = True
  97. Attribute VB_Exposed = False
  98. Private Sub Command1_Click()
  99. If Text2.Text <> Text3.Text Then GoTo hell:
  100. If Text1.Text = "" Then GoTo hell:
  101. If InStr(1, Text1.Text, ">") <> 0 Then GoTo hell:
  102. If InStr(1, Text1.Text, ",") <> 0 Then GoTo hell:
  103. If InStr(1, Text1.Text, ";") <> 0 Then GoTo hell:
  104. If InStr(1, Text1.Text, "*") <> 0 Then GoTo hell:
  105. Text1.Enabled = False
  106. Text2.Enabled = False
  107. Text3.Enabled = False
  108. Label4.Caption = "Contacting server..."
  109. send "cre " & Text1.Text & "," & Text2.Text
  110. Exit Sub
  111. hell:
  112. MsgBox "If you specified a password, make sure they are the same, and that the room name does not contain the characters '>' ',' or ';'", vbExclamation
  113. End Sub
  114. Private Sub Command2_Click()
  115. Unload Me
  116. End Sub
  117.